package org.zerg.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.zerg.entity.Category;


public interface CategoryDao {

	List<Category> categoryAll();
	
	int inserCategory(@Param("name") String name,@Param("id") int id);
	
	int modifyCategory(@Param("name") String name,@Param("iid") int iid,@Param("id") int id);

	int modifyCategoryNoFile(@Param("name") String name,@Param("id") int id);
	
	int deleteCategory(@Param("id") int id);

	Category getCategoryByName(String name);
}
